<?php

namespace app\modules\user\controllers;

use yii;
use yii\web\Controller;
use common\models\Tools;
use common\models\Works;
/**
 * 会员信息页面
 */
class MessageController extends Controller
{
    public $enableCsrfValidation=false;
	public $leftmenu;
    /**
     * Renders the index view for the module
     * @return string
     */
    public function actionIndex()
    {
        //检测登录情况
        if (Yii::$app->user->isGuest) {
            return $this->redirect('/site/login?returnurl=/user/default/index');
        }
       
        $this->getView()->title = "消息中心";
        $this->layout = "/personal";		
        return $this->render('index');
    }

}
